#ifndef MODBUSWIG_H
#define MODBUSWIG_H

#include <QWidget>

namespace Ui {
class ModbusWig;
}

class ModbusWig : public QWidget
{
    Q_OBJECT

public:
    explicit ModbusWig(QWidget *parent = 0);
    ~ModbusWig();

private:
    Ui::ModbusWig *ui;
    QString getValueForKey(QMap<int, QString> map, int key);
    int airflag = 0;
        int lightflag = 0;
        int lockflag = 0;
        int beepflag = 0;
private slots:
    void on_publishButton_clicked(); // 槽函数，当按钮被点击时调用
    void on_publishButton2_clicked();
    void on_publishButton3_clicked();
    void on_publishButton4_clicked();
public slots:
    void dataUpSlot(QByteArray data); // 声明槽函数
};

#endif // MODBUSWIG_H
